import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-add-job',
  templateUrl: './add-job.component.html',
  styleUrls: ['./add-job.component.css']
})
export class AddJobComponent implements OnInit {
  jobTypes = [];
  weeks=[];
  constructor() { }

  ngOnInit() {
    this.jobTypes = [
      { value: 'DAILY_JOB', label: '每日任务' },
      { value: 'WEEK_JOB', label: '每周任务' },
      { value: 'MOUTH_JOB', label: '每月任务'},
      { value: 'DYNAMIC_JOB', label: '自定义任务'}
    ];

    this.weeks  = [
      { value: '1', label: '星期一' },
      { value: '2', label: '星期二' },
      { value: '3', label: '星期三'},
      { value: '4', label: '星期四'},
      { value: '5', label: '星期五'},
      { value: '6', label: '星期六'},
      { value: '7', label: '星期天'},
    ];

  }

}
